# -*- shell-script -*-

#  Copyright (C) 2014 Curt Brune <curt@cumulusnetworks.com>
#
#  SPDX-License-Identifier:     GPL-2.0

# Functions useful inside the DEMO OS

# Find the DEMO type specified on the kernel command line
demo_type_get()
{
    demo_type="OS"
    for x in $(cat /proc/cmdline); do
        parm=${x%%=*}
        val=${x#*=}
        case $parm in
            DEMO_TYPE)
                demo_type="${val}"
                break
                ;;
        esac
    done
    echo -n "$demo_type"
}
